
export const getlist = (data = 5) => {
    return new Promise((resolve) => {
        setTimeout(() => {
            let arr = Array.from({ length: data }, (v, i) => i)
            resolve(arr)
        }, 1000)
    })
}


export const getcolor = (data = '#f00') => {
    return new Promise((resolve) => {
        setTimeout(() => {          
            resolve(data)
        }, 1500)
    })
}